#ifndef CREATEUSERDIALOG_H
#define CREATEUSERDIALOG_H

#include <QDialog>
class QTcpSocket;

namespace Ui {
class CreateUserDialog;
}

class CreateUserDialog : public QDialog
{
    Q_OBJECT
private:
    QTcpSocket *tcpSocket;
    bool exist=true;
public:
    bool isIdValidInt(const QString &id);
    explicit CreateUserDialog(QWidget *parent = nullptr);
    ~CreateUserDialog();

private slots:
    void on_editPSWD_textChanged(const QString &arg1);

    void on_editName_textChanged(const QString &arg1);

    void on_editUser_textChanged(const QString &arg1);
    void do_readyRead();
    void on_btnCreate_clicked();

private:
    QString strID="",strName="",strPSWD="";
    QString ID,name,pswd;
    bool boolID=false,boolName=false,boolPSWD=false;
    Ui::CreateUserDialog *ui;
};

#endif // CREATEUSERDIALOG_H
